<extend name="Base/common"/>
<block name="header">
    <include file="Public/nav"/>
</block>
<block name="body">
    <!--模板详情-->
    <div class="container  templet">
        <div class="common-block clearfix">
            <section>
                <header>
                    <ol class="breadcrumb">
                        <li><a href="{:U('index/index')}">首页</a></li>
                        <li><a href="{:U('my')}">开发者中心</a></li>
                        <li class="active">控制面板</li>
                    </ol>
                </header>

                <include file="Admin/_info"/>
                <div class="col-md-2">

                    <include file="_side"/>
                </div>


                <div class="col-md-10">

                    <div class="col-md-12">
                        <div class="panel panel-default">


                            <!-- Default panel contents -->
                            <div class="panel-heading pull-left" style="width: 100%">
                                <div class="pull-left">
                                    订单列表 （{:count($order_list)}）
                                </div>
                                <form action="{:U('appstore/admin/order')}" method="post">
                                    <div class=" pull-right input-group" style="width: 300px;">
                                        <input placeholder="输入订单号搜索" class="pull-left form-control" name="keywords"
                                               value="{$_POST['keywords']}"> <span class="input-group-btn">   <button
                                            class="btn btn-default search-btn1" type="button">搜索
                                    </button>         </span>
                                    </div>
                                </form>

                            </div>
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>订单号</th>
                                    <th>名称</th>
                                    <th>版本</th>
                                    <th>订单状态</th>
                                    <th>创建时间</th>
                                    <th>价格</th>
                                    <th>付款状态</th>
                                    <th>付款日期</th>


                                </tr>
                                </thead>
                                <tbody>

                                <volist name="order_list" id="vo">
                                    <tr>
                                        <td><a target="_blank" href="{:U('index/order',array('id'=>$vo['id']))}">{$vo.id}</a>
                                        </td>
                                        <td><a target="_blank"
                                               href="{:U('index/goodsDetail',array('id'=>$vo['goods_id']))}">{$vo.goods}</a>
                                        </td>
                                        <td>{$vo.version}</td>
                                        <td>{$vo['status']}</td>
                                        <td>{$vo.create_time|date='Y-m-d H:i',###}</td>
                                        <td>{$vo.score}{$vo.payment_price}</td>
                                        <td>{$vo['pay_ok']}</td>
                                        <td>{$vo.pay_time|friendlyDate}</td>

                                    </tr>
                                </volist>
                            </table>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
    <style>
        .cover {
            width: 60px;
            height: 60px;
            min-width: 60px;
        }
    </style>
    <script>
        $(function () {
            $('.search-btn1').click(function () {
                $(this).closest('form').submit();
            })
        })
    </script>
</block>
